package cn.com.nes.common.em.platform;

import cn.com.nes.site.config.CustomConfigurationProperties;

/**
 * 易修远程调用枚举
 */
public enum EasyRepairMethodEnum {

    AGENT_CREATE_USER("热链云创建易修用户", "/auth/agentCreateUser"),
    AGENT_DELETE_USER("热链云删除易修用户", "/auth/agentDeleteUser"),

    ;

    private static String URL = CustomConfigurationProperties.getEasyRepairUrl() + "/" + PlatformEnum._easy_repair.getServerContext();

    private final String remark;

    private final String method;

    EasyRepairMethodEnum(String remark, String method) {
        this.remark = remark;
        this.method = method;
    }

    public String getRemark() {
        return remark;
    }

    public String url() {
        return URL + method;
    }
}
